/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.programs.program02.impl;

import java.math.BigDecimal;
import za.ac.cput.pretorius.programs.program02.TaxCalculator;

/**
 *
 * @author griddy
 */
public class TaxCalculatorImpl implements TaxCalculator{

    private BigDecimal taxPercentage;

    @Override
    public BigDecimal getTaxPercentage() {
        return taxPercentage;
    }

    @Override
    public void setTaxPercentage(BigDecimal percentage) {
       taxPercentage = percentage;
    }
    
    @Override
    public BigDecimal calcTax(BigDecimal amount) {
        return (amount.multiply(taxPercentage));
    }
    
}
